﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DevelopKit
{
    /// <summary>
    /// WebKit
    /// </summary>
    /// <remarks>2014-2-13 by sutroon</remarks>
    public partial class frmWebKit : Form
    {
        public frmWebKit()
        {
            InitializeComponent();

            miClickConfig();
        }

        private void frmWebKit_Load(object sender, EventArgs e)
        {
            if (AppDataHelper.WebKitForm == null) AppDataHelper.WebKitForm = this;
        }

        private void miClickConfig()
        {
            miDesignKitToolStripMenuItem.Click += new EventHandler(mi_Click);
        }
        private void mi_Click(object sender, EventArgs e)
        {
            switch (((ToolStripMenuItem)sender).Name)
            {
                case "miDesignKitToolStripMenuItem":
                    if (AppDataHelper.DesignKitForm == null) AppDataHelper.DesignKitForm = new frmDesignKit();
                    AppDataHelper.DesignKitForm.Show();
                    this.Hide();
                    break;
            }
        }
    }
}
